<template>
	<scEditor v-model="contentValue" placeholder="请编辑" :height="800"></scEditor>
</template>

<script>
	import {
		defineAsyncComponent
	} from 'vue';
	const scEditor = defineAsyncComponent(() => import('@/components/scEditor'));

	export default {
		name: 'richText',
		components: {
			scEditor
		},
		props: {
			modelValue: String
		},
		computed: {
			contentValue: {
				get() {
					return this.modelValue
				},
				set(val) {
					this.$emit('update:modelValue', val);
				}
			}
		}
	}
</script>
<style scoped lang="scss">

</style>
